package com.talos.ums.controller.admin.usercustomer.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 账号关联客户表新增/修改 Request VO")
@Data
public class UmsUserCustomerSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2872")
    private Long id;

    @Schema(description = "账号id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1347")
    @NotNull(message = "账号id不能为空")
    private Long userId;

    @Schema(description = "货主id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11906")
    @NotNull(message = "货主id不能为空")
    private Long companyId;

    @Schema(description = "货主编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "货主编码不能为空")
    private String companyCode;

    @Schema(description = "货主名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "货主名称不能为空")
    private String companyName;

    @Schema(description = "客户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4575")
    @NotNull(message = "客户id不能为空")
    private Long customerId;

    @Schema(description = "客户编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "客户编码不能为空")
    private String customerCode;

    @Schema(description = "客户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "客户名称不能为空")
    private String customerName;

}
